package com.qijian.maindata.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 已派工超12小时未接单+报工超12小时未验收+ (接单+定额时间+12小时未报工)
 */

@Data
@ToString
public class ProcessOrderRemindVo {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long workId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long managerId;
    @Excel(name = "工单管理人", sort = 1)
    private String managerName;
    private String managerEmail;
    @Excel(name = "工单管理人部门", sort = 2)
    private String managerDeptName;

    @Excel(name = "车间", sort = 3)
    private String factoryDeptName;
    @Excel(name = "车间主任", sort = 4)
    private String factoryManagerName;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long factoryUserId;
    private String factoryEmail;

    @Excel(name = "工单编号", sort = 5)
    private String workCode;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @Excel(name = "接单人", sort = 6)
    private String nickName;

    @Excel(name = "接单工时", sort = 7)
    private String times;

    private String email;

    @Excel(name = "派单时间", sort = 8, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "接单时间", sort = 9, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    @Excel(name = "报工时间", sort = 10, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date reportTime;

    @Excel(name = "类型", sort = 11)
    private String type;

    @Excel(name = "超时时长", sort = 12)
    private BigDecimal expireHours;

    private Boolean expireFlag;
}
